package com.lee.dianjiqi.timing;


import java.util.concurrent.TimeUnit;

/**
 * 定时任务配置
 */
public interface ScheduleConstants {
//
//    /**
//     * 与服务器通信频率
//     */
//    int WORK_SCHEDULE_DELAY = 0;
//    int HTTP_COMMAND_PERIOD_DEFAULT = Constant.REQUEST_INTERVAL ;//与服务器默认通信间隔时间
//    TimeUnit WORK_SCHEDULE_TIMEUNIT = TimeUnit.SECONDS;


//    /**
//     * 游戏参数判断频率
//     */
//    int YXCS_SCHEDULE_INITIALDELAY = 0;
//    int YXCS_COMMAND_PERIOD_DEFAULT = 30;
//    TimeUnit YXCS_SCHEDULE_TIMEUNIT = TimeUnit.SECONDS;


    /**
     * socket心跳包
     */
    int HEART_INITIAL_DELAY = 0;
    int HEART_PERIOD = 60 * 4 + 40;//心跳间隔 4分钟40秒
    TimeUnit HEART_SCHEDULE_TIMEUNIT = TimeUnit.SECONDS;//单位


    /**
     * 定期检查socket连接
     */
    int CHECK_INITIAL_DELAY = 60;
    int CHECK_PERIOD = 60;//定期检查间隔 1分钟
    TimeUnit CHECK_SCHEDULE_TIMEUNIT = TimeUnit.SECONDS;//单位


    /**
     * 定期检查打印机连接状态
     */
    int PRINTER_INITIAL_DELAY = 0;
    int PRINTER_PERIOD = 30;//定期检查间隔 1分钟
    int PRINTER_PERIOD_SHORT = 5;//定期检查间隔 10秒
    TimeUnit PRINTER_SCHEDULE_TIMEUNIT = TimeUnit.SECONDS;//单位


    /**
     * 定期上传操作流程日志
     */
    int OPERATOR_INITIAL_DELAY = 0;
    int OPERATOR_PERIOD = 60 * 10;//定期检查间隔
    TimeUnit OPERATOR_SCHEDULE_TIMEUNIT = TimeUnit.SECONDS;//单位


}
